package cn.dfun.demo.scdemo.ali.seata.service;

import cn.dfun.demo.scdemo.common.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value="scdemo-ali-seata-account")
public interface AccountService {
    @PostMapping(value="/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
